package com.kaifamiao.inherit.child;

import com.kaifamiao.inherit.Vehicle;

public class Bicycle extends Vehicle {

    public static void main(String[] args) {
        Bicycle b = new Bicycle();
        b.shelf = "金属框架";
        b.wheel = "带轮胎的轮子";
        // 'engine' is not public in 'com.kaifamiao.inherit.Vehicle'.
        // b.engine = "人力"; // Cannot be accessed from outside package
        b.move();
        b.introduce();
    }

}
